
import pygame
import sys
import math
from pygame.locals import *

pygame.init()
white = (255,255,255)
black = (0,0,0)
red = (255,0,0)
upper_right = ()
lower_left = ()
col = ()
row = ()

points = [(480,480),(480,480)]
size = width, height = 640,480

screen = pygame.display.set_mode(size)
pygame.display.set_caption("jingziqi")

clock = pygame.time.Clock()

while True:
    for event in pygame.event.get():
        if event.type == pygame.QUIT:
            pygame.quit()
            exit(0)
    screen.fill(white)

    pygame.draw.line(screen,black,(1,150),(640,150),5)
    pygame.draw.line(screen,black,(1,300),(640,300),5)
    pygame.draw.line(screen,black,(200,1),(200,640),5)
    pygame.draw.line(screen,black,(420,1),(420,640),5)
    pygame.draw.ellipse(screen,black,(50,50,50,50),1)

    pygame.display.flip()
    pygame.draw.circle(screen,red,(520,80),45)

    


    font = pygame.font.Font(None,24)
    minutes = str(90-pygame.time.get_ticks()/1000%60)
    seconds = str(pygame.time.get_ticks()/60000)
    survivedtext = font.render(seconds+":"+minutes, True, (0 ,0 ,0))
    screen.blit(survivedtext, (500 , 8))

    pygame.display.flip()
    
    clock.tick(60)
    
